import random
x=random.randint(1,100)
print("这个随机数为：%d"%x)
count=0;#计数

while count<5:
    content = int(input("用户输入的随机数是："))
    count+=1
    if content>x:
        print("比这个小！")
        continue
    elif content<x:
        print("比这个大！")
        continue
    else:
        print("棒！你猜对了！")
        break
if(count==5):
    print("你输了！正确的随机数是%d"%x)



